﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JoinParty.BLL;
using ZHDJ.WebPage;

namespace JoinParty.Template
{
    public partial class TJoinStep09 : TemplatePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            WordBusiness.Export(this, palWord, "入党积极分子培养教育考察.doc");
        }

        public void LoadData()
        {
            var rep = DB.PartyJoinReviewOptions.Where(r => r.AppllicationID == PartyJoinApplycation.AppllicationID && r.StepID == "JoinStep9").FirstOrDefault();
            if (rep == null)
            {
                return;
            }
            litCultureMeasures.Text = rep.CultureMeasures;
            litBranchOpinion.Text = rep.BranchOpinion;
            litOne.Text = rep.OpinionOne;

            litTwo.Text = rep.OpinionTwo;

            litThree.Text = rep.OpinionThree;

            litFour.Text = rep.OpinionFour;

            litFive.Text = rep.OpinionFive;

            litSix.Text = rep.OpinionSix;

            litRemark.Text = rep.Remark;
        }
    }
}